﻿/*
 * Returns the maximum big integer value supported by SQL Server.
 */
create function [BigInt].[MaxValue] ()
returns bigint as
begin

  return 9223372036854775807 ;

end